#ifndef SETTINGS_H
#define SETTINGS_H

#include <QObject>
#include <QMutex>
#include <QSettings>

class Settings : public QObject
{
    Q_OBJECT
public:
    explicit Settings(QObject *parent = nullptr);
    static Settings* getInstance();

    QString getAdbPath();
    int getDisWidth();

    void setAdbPath(QString path);
    void setDisWidth(int width);
signals:

public slots:

private:
    static QMutex mutex;
    static QAtomicPointer<Settings> instance;
    QSettings settings;
};

#endif // SETTINGS_H
